<script setup lang="ts">
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app'
import { getUtils } from '@/utils'

onLaunch(() => {
  if (!wx.cloud) {
    console.error('请使用 2.2.3 或以上的基础库以使用云能力')
  } else {
    wx.cloud.init({
      env: 'dev-index-show',
      traceUser: true
    })
  }
})

onShow(() => {
  // const res = await wx.cloud.callFunction({
  //   name: 'base'
  // })
  console.log('res', getUtils())
})

onHide(() => {
  console.log('App Hide')
})
</script>

<script lang="ts">
export default {
  globalData: {
    showHeader: false
  }
}
</script>

<style lang="scss">
@import url(./base.scss);

.main {
  width: 100vw;
  height: 100vh;
}
</style>
